package jdbc3;

import java.util.Date;

public class Student {
    private String sno;
    private String sname;
    private String ssex;
    private Date sbirthday;
    private String classname;

    public Student() {
    }

    public Student(String sno, String sname, String ssex, Date sbirthday, String classname) {
        this.sno = sno;
        this.sname = sname;
        this.ssex = ssex;
        this.sbirthday = sbirthday;
        this.classname = classname;
    }

    /**
     * 获取
     * @return sno
     */
    public String getSno() {
        return sno;
    }

    /**
     * 设置
     * @param sno
     */
    public void setSno(String sno) {
        this.sno = sno;
    }

    /**
     * 获取
     * @return sname
     */
    public String getSname() {
        return sname;
    }

    /**
     * 设置
     * @param sname
     */
    public void setSname(String sname) {
        this.sname = sname;
    }

    /**
     * 获取
     * @return ssex
     */
    public String getSsex() {
        return ssex;
    }

    /**
     * 设置
     * @param ssex
     */
    public void setSsex(String ssex) {
        this.ssex = ssex;
    }

    /**
     * 获取
     * @return sbirthday
     */
    public Date getSbirthday() {
        return sbirthday;
    }

    /**
     * 设置
     * @param sbirthday
     */
    public void setSbirthday(Date sbirthday) {
        this.sbirthday = sbirthday;
    }

    /**
     * 获取
     * @return classname
     */
    public String getClassname() {
        return classname;
    }

    /**
     * 设置
     * @param classname
     */
    public void setClassname(String classname) {
        this.classname = classname;
    }

    public String toString() {
        return "Student{sno = " + sno + ", sname = " + sname + ", ssex = " + ssex + ", sbirthday = " + sbirthday + ", classname = " + classname + "}";
    }
}
